package com.lqe.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("hello")
public class HelloController {

    @RequestMapping("demo01")
    public String hello(String name, HttpServletRequest request){
        System.out.println("Hello,World!");
        request.setAttribute("name",name);
        return "success.jsp";
    }
}
